#if !GENERATOR

using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Xml.Serialization;
using System.Collections.Generic;

using YF.OneNote;


namespace YF.OneNote.DataTypes
{
  public partial class PageObject
  {
    public PageObject()
    {
      
	}

    
  
    protected override bool UpdateContents(NotesNode newContent, List<INotesChange> changes)
    {
	  PageObject item = (PageObject)newContent;
      bool changed = false;

      
      if (objectID != item.objectID)
      {
        changed = true;
		
		NotesPropertyChange propertyChange = new NotesPropertyChange();

        propertyChange.ChangeType = NoteChangeType.Changed;
        propertyChange.OldValue = objectIDField;
        propertyChange.NewValue = item.objectIDField;
        propertyChange.PropertyName = "objectID";
        changes.Add(propertyChange);

		
        objectIDField = item.objectIDField;
      }

      if (selected != item.selected)
      {
        changed = true;
		
		NotesPropertyChange propertyChange = new NotesPropertyChange();

        propertyChange.ChangeType = NoteChangeType.Changed;
        propertyChange.OldValue = selectedField;
        propertyChange.NewValue = item.selectedField;
        propertyChange.PropertyName = "selected";
        changes.Add(propertyChange);

		
        selectedField = item.selectedField;
      }


      return changed;
    }
  }
}

#endif